//
// Created by Administrator on 2024-1-11.
//

#include <iostream>
#include <fstream>
#include "MyClass.h"

using namespace std;

int mainFile() {
    std::ofstream MyFile2("way20240111.txt");

    MyFile2 << " abcdefg abc";

    MyFile2.close();

    return 0;
}

int mainMyClass() {
    MyClass class1;

    class1.name = "class1";
    class1.num = 40;

    cout << class1.name << "\n " << class1.num << endl;

    class1.method();

    MyClass myClass2(50,"class2");
    cout << myClass2.name << "\n " << myClass2.num << endl;
    myClass2.method();

}